package com.dykj.fireFighting.api.elasticsearch.devHisWater.service;

import com.dykj.fireFighting.api.elasticsearch.devHisWater.entity.EsDevHisWater;
import com.dykj.fireFighting.common.core.api.CommonResult;
import com.dykj.fireFighting.common.core.vo.PageVo;

/**
 * 实时报警Service
 * Created by macro on 2018/6/19.
 */
public interface EsDevHisWaterService {
    /**
     * 导入所有信息到ES
     */
    EsDevHisWater importAll(EsDevHisWater esDevHisWater);
    PageVo<EsDevHisWater> search(String keyword, String deviceName, Integer pageNum, Integer pageSize,String beginDate,String endDate);
    PageVo<EsDevHisWater> centerSearch(String keyword, String unitId,String deviceName,Integer pageNum, Integer pageSize,String beginDate,String endDate);

    EsDevHisWater getByRalationId(String keyword, String deviceName);

    EsDevHisWater getByDevHisWaterId(String id);

    PageVo<EsDevHisWater> searchByCenterId (String centerId, String unitId, String deviceName, Integer pageNum, Integer pageSize, String beginDate, String endDate);
}
